import request from '@/utils/request'

//获取检验方法列表
export function GetInnspectionMethodList(data){
   return request({
        url: `/api/BaseData/Innspectionmethod`,
        method: 'GET',
        data
    })
}

//获取所有检验方法
export function GetInnspectionMethodAll(){
    return request({
        url: `/api/BaseData/Innspectionmethod/ALL`,
        method: 'Get',
    })
}

//获取检验方法信息
export function GetInnspectionMethodInfo(id){
    return request({
        url: `/api/BaseData/Innspectionmethod/${id}`,
        method: 'Get',
    })
}
//删除检验方法
export function DelInnspectionMethod(id){
    return request({
        url: `/api/BaseData/Innspectionmethod/${id}`,
        method: 'DELETE',
    })
}
//批量删除检验方法
export function DelInnspectionMethodBatch(data){
    return request({
        url: `/api/BaseData/Innspectionmethod/batchRemove`,
        method: 'Post',
        data
    })
}
//导出检验方法
export function exportData(data){
    return request({
        url: `/api/BaseData/Innspectionmethod/Actions/Export`,
        method: 'Get',
        data
    })
}
//创建检验方法
export function createInnspectionmethod(data){
    return request({
        url: `/api/BaseData/Innspectionmethod`,
        method: 'Post',
        data
    })
}
//更新检验方法
export function updateInnspectionmethod(data){
    return request({
        url: `/api/BaseData/Innspectionmethod/${data.id}`,
        method: 'PUT',
        data
    })
}
//导入数据
export function ImportData(data){
    return request({
        url: `/api/BaseData/Innspectionmethod/ImportData`,
        method: 'Post',
        data
    })
}
//导入预览
export function ImportPreview(data){
    return request({
        url: `/api/BaseData/Innspectionmethod/ImportPreview`,
        method: 'Get',
        data
    })
}
//模板下载
export function TemplateDownload(){
    return request({
        url: `/api/BaseData/Innspectionmethod/TemplateDownload`,
        method: 'Get'
    })
}
